Skip to content

Adding command line option to watch a single namespace - #742

Open
augustoribeiro wants to merge 2 commits into
cloudnative-pg:mainfrom
augustoribeiro:watchworkspace
Open

augustoribeiro wants to merge 2 commits into
cloudnative-pg:mainfrom
augustoribeiro:watchworkspace

Conversation

@augustoribeiro

@augustoribeiro augustoribeiro commented Jan 21, 2026

Copy link
Copy Markdown

Currently barman-cloud-plugin wants to watch resources cluster-wide. I would like it to allow for more restrictive rbac, like allowing it to only watch the target namespace where Clusters are actually provisioned.

This PR adds the --watch-namespace command line option which restricts the reconciler to a single namespace.

Tested this change in a development cluster. I am happy to write some integration test if somebody points me on how I should do that.

This is my first time contributing, if this submission is missing something feel free to comment

@augustoribeiro
augustoribeiro requested a review from a team January 21, 2026 10:03
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Jan 21, 2026
@augustoribeiro
augustoribeiro force-pushed the watchworkspace branch 2 times, most recently from 646c6b0 to c3dbf48 Compare January 22, 2026 10:22
…if set

Signed-off-by: augusto.ribeiro <augusto.ribeiro@cloudkitchens.com>
Signed-off-by: augustoribeiro <augusto.mcc@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant